<div class="form">

	<?php
	$properties = array(
		'id'=>'chapter-form',
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'mangaId');
		?>
		<?php
		echo $form->dropDownList($model, 'mangaId', Manga::model()->listData());
		?>
		<?php
		echo $form->error($model, 'mangaId');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'sequence');
		?>
		<?php
		echo $form->textField(
			$model, 'sequence', array('size'=>7, 'maxlength'=>5)
		);
		?>
		<?php
		$data = array('b'=>'b', 'c'=>'c', 'd'=>'d', 'e'=>'e');
		$htmlOptions = array(
			'encode'=>false,
			'prompt'=>'',
		);
		echo $form->dropDownList($model, 'subSequence', $data, $htmlOptions);
		?>
		<?php
		echo $form->error($model, 'sequence');
		?>
		<?php echo $form->error($model, 'subSequence'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model, 'title');
		?>
		<?php
		echo $form->textField(
			$model, 'title', array('size'=>60, 'maxlength'=>255)
		);
		?>
		<?php echo $form->error($model, 'title');
		?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'cover');
		?>
		<?php
		echo $form->fileField($model, 'cover');
		?>
		<?php echo $form->error($model, 'cover');
		?>
	</div>

	<div class="row buttons">
		<?php
		echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->